Imports System.ComponentModel
Imports Aricie.ComponentModel
Imports Aricie.DNN.Services.Filtering

Namespace Aricie.DNN.Services.Url.FriendlyUrl
    Public Class HtmlFilterSettings

        Private Const DEFAULT_LINK_SELECT As String = "//*[self::img or self::link or self::a]/@*[(local-name() = 'href' or local-name() = 'src' or local-name() = 'data-src' or local-name() = 'data-original')]"

        Public Property XPathSelect() As New CData(DEFAULT_LINK_SELECT)


        Private _XPathSettings As XPathInfo

        <Browsable(False)> _
        Public ReadOnly Property XPathSettings() As XPathInfo
            Get
                If _XPathSettings Is Nothing Then
                    _XPathSettings = New XPathInfo(XPathSelect, False, True) With {.SelectMode = XPathSelectMode.SelectionNodes} ', .ApplyFilter = True, _
                        '.Filter = New ExpressionFilterInfo() With {.EncodePreProcessing = EncodeProcessing.HtmlDecode}}
                End If
                Return _XPathSettings
            End Get
        End Property


        Public Property DefaultNonPageStrategy() As New FriendlierUrlStrategy() With {.Enabled = False}

        


    End Class
End NameSpace